package work;
import java.util.Scanner;
public class Text {
      
	 public static void main(String[] args) {
	Students zhangsan= new Students("1","张三","大一");
	Students lisi=new Students("2","李四","大五");
	Lab a =new Lab("01","计算机网络实验室","周末下午6:00-7:00");
	Lab b =new Lab("02","组成原理实验室","周日下午6:00-7:00");
	Lab c =new Lab("03","电路模拟电子技术实验室","周五上午11:00-12:00");
	Account account1=new Account();
	 Scanner sc = new Scanner(System.in);
	 System.out.println("欢迎使用勤工俭学模拟系统！" + "\n" + "菜单：" + "\n" + "1.学生编号登入" + "\n" + "2.游客登入" );
	 int n1 =sc.nextInt();
	 if(n1==2) {
	 System.out.println("请输入您负责清洁实验室的个数");
	 int n = sc.nextInt();
	 System.out.println("请分别输入您18周总共所获得的优与及格的个数");
	 int g = sc.nextInt();
	 
	 int p = sc.nextInt();
	 while((g+p)/n!=18) {
		 System.out.println("输入错误，请重新输入您负责清洁实验室的个数");
		 g = sc.nextInt();
		 p = sc.nextInt();
		 
		 
	 }
	 System.out.println("纳税前的金额为 ： "+account1. Salary(g,p));
	 System.out.println("纳税后的金额为 ： "+account1.finalSalary(g,p));
	 }
	 if(n1==1) {
		 System.out.println("请输入学生编号");
	     int n2=sc.nextInt();
     if(n2==1) {System.out.println("姓名：张三  年级：大一 负责的实验室有"+a.number+a.name+a.time+"     "+b.number+b.name+b.time);
     System.out.println("纳税前的金额为 ：1650.0 ");
	 System.out.println("纳税后的金额为 ：1485.0");
     }
     if(n2==2) {System.out.println("姓名：张三  年级：大一 负责的实验室有"+a.number+a.name+a.time+"     "+b.number+b.name+b.time+"    "+c.number+c.name+c.time);  	 
     System.out.println("纳税前的金额为 ：2100.0 ");
	 System.out.println("纳税后的金额为 ：1890.0 ");
     }	 
	}  
	 
	 }
}
